package wechat.custapp

import org.junit.Ignore
import org.junit.Test
import wechat.base.snd.WCMenu


class CreateCustomerMenuTest {

	@Test
	@Ignore
	def void deletemenu(){
		WXCorpCustAppFactory::getDefaultCorpApp()=>[
			deleteMenu
		]
	}


	@Test
	@Ignore
	def void createMenu(){
		val app = WXCorpCustAppFactory::getDefaultCorpApp()
		val m =  new WCMenu=>[
			withButton(
				createBtn=>[
					name = '评价项目'
					type = 'click'
					key = 'CUSTOMER_APPRAISAL'
				]
			)
		]
		
		println(m.build.toString)
		println('******************************'+app.createMenu(m))
	}
}